package lt.ntec.sudokusolver.engine;

import java.util.ArrayList;

public abstract class CellContainer {
	private int _addCount = 0;

	private ArrayList<Cell> _cells = new ArrayList<Cell>();

	public void setCell(Cell cell, int ind) {
		_cells.set(ind, cell);
	}

	public void addCell(Cell cell) {
		if (_addCount > 8) {
			throw new RuntimeException("Cell is full in" + this.toString());
		}
		_cells.add(cell);
	}

	public ArrayList<Cell> getCells() {
		return _cells;
	}
}
